package com.ruoyi.emqx;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.Map;

@RestController
@RequestMapping("/mqtt")
public class RuleController {


    @PostMapping("/rule")
    public String rule(@RequestBody Map<String, Object> params) {
        for (int i = 0; i <5 ; i++) {
            System.out.println(123456);
        }
        return "成功";
    }

}
